#!/usr/bin/python -S
"""
util.py

Dependencies of xmap.py and streams.puy.
"""

__author__ = 'Andy Chu'


import sys


# Default is level 1, which shows some summaries.
_verbose = 1

def log(msg, *args):
  # Right now logging is only 2 or greater
  if _verbose <= 1:
    return

  if args:
    msg = msg % args
  print >>sys.stderr, '\txmap: ' + msg
